﻿using System.Collections.Generic;
using WeifenLuo.WinFormsUI.Docking;
using Ycjw.PipeLine.Map.Basic.Conditions;

namespace Ycjw.PipeLine.Map.Tools.Conditions
{
    class Test1 : ConditionPanel
    {
        public override string ConditionPanelName { get => base.ConditionPanelName; set => base.ConditionPanelName = value; }

        public override bool ConditionValid()
        {
            return base.ConditionValid();
        }

        public override object Do(DockPanel dockPanel = null)
        {
            var dt = new System.Data.DataTable();
            dt.Columns.Add("Column1");
            dt.Columns.Add("Column2");
            for (int i = 0; i < 20; i++)
            {
                var dr = dt.NewRow();
                dr[0] = "X-" + 0;
                dr[1] = "X-" + 1;
                dt.Rows.Add(dr);
            }
            return dt;
        }

        public override SortedDictionary<string, object> SetConditions()
        {
            return new SortedDictionary<string, object>();
        }
    }
}
